<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 插件菜单
*/
defined('BY_JYA') or exit('error');
$plugins=$this->plugins();
$credit_types=credit_types(true);
foreach($plugins as $ki=>&$item){
	$item['child']=$item['list'];
	unset($item['list']);
	foreach($item['child'] as $k=>&$p){
		if(!$p['is_install']){
			unset($item['child'][$k]);
		}else{
			if($p['actionurl']){
				$p['url']=$p['actionurl'];
			}else{
				$p['url']=$p['name'].'/basic.module_home/';
			}
		}
	}
}
$menus=array(
	array('title'=>'平台','fa'=>'icon-dianpu','url'=>'jy_ad/index/','child'=>array(
		array('title'=>'平台','child'=>array(
			array('url'=>'jy_ad/index/','title'=>'平台概况'),
			array('url'=>'jy_weishop/shop.notice/','title'=>'公告管理'),
			array('url'=>'jy_ad/basic.module_home/cover/ac=index','title'=>'平台入口'),
		)),
		array('title'=>'新闻','child'=>array(
			array('url'=>'core/account.article_list/','title'=>'新闻列表'),
			array('url'=>'core/account.article_fenlei/','title'=>'新闻分类'),
		)),
		array('title'=>'种草管理','child'=>array(
			array('url'=>'jy_weishop/grass.index/','title'=>'种草管理'),
			array('url'=>'jy_weishop/grass.groups/','title'=>'种草分类'),
			array('url'=>'jy_weishop/grass.setting/','title'=>'种草设置'),
			array('url'=>'jy_weishop/basic.module_home/cover/ac=grass.index','title'=>'种草入口'),
		)),
		array('title'=>'短视频','child'=>array(
			array('url'=>'jy_weishop/video.index/','title'=>'短视频管理'),
			array('url'=>'jy_weishop/video.groups/','title'=>'短视频分类'),
			array('url'=>'jy_weishop/video.setting/','title'=>'短视频设置'),
			array('url'=>'jy_weishop/basic.module_home/cover/ac=video.index','title'=>'短视频入口'),
		)),
		array('title'=>'帮助中心','child'=>array(
			array('url'=>'jy_weishop/news.index/','title'=>'问题管理'),
			array('url'=>'jy_weishop/news.groups/','title'=>'问题分类'),
			array('url'=>'jy_weishop/basic.module_home/cover/ac=news.list','title'=>'帮助中心'),
		)),
	)),
	array('title'=>'广告','fa'=>'icon-guanyuwo','url'=>'jy_ad/goods/','child'=>array(
		array('title'=>'广告管理','child'=>array(
			array('url'=>'jy_ad/goods/','title'=>'广告列表'),
		)),
		array('title'=>'记录','child'=>array(
			array('url'=>'jy_ad/ad.log/','title'=>'看广记录'),
		)),
		array('title'=>'设置','child'=>array(
			array('url'=>'jy_ad/ad.setting/','title'=>'广告设置'),
		)),
	)),
	array('title'=>'收益','fa'=>'icon-guanyuwo','url'=>'jy_ad/nfee.feelog/','child'=>array(
		array('title'=>'收益流水','child'=>array(
			array('url'=>'jy_ad/feelog//type=1','title'=>'看广告收益'),
			array('url'=>'jy_ad/feelog//type=3','title'=>'团队循环奖'),
			array('url'=>'jy_ad/feelog//type=4','title'=>'加权分红'),
			array('url'=>'jy_ad/balance/','title'=>'结算管理'),
		)),
		array('title'=>'能量值流水','child'=>array(
			array('url'=>'jy_ad/feelog//type=2','title'=>'能量值收益'),
			array('url'=>'jy_ad/nfee.sifang/','title'=>'总能量值池'),
			array('url'=>'jy_ad/nfee.member/','title'=>'用户能量值'),
		)),
	)),
	array('title'=>'团长','fa'=>'icon-guanyuwo','url'=>'jy_ad/team.list/','child'=>array(
		array('title'=>'团长管理','child'=>array(
			array('url'=>'jy_ad/team.list/','title'=>'团队长管理'),
			array('url'=>'jy_ad/member/','title'=>'会员管理'),
		)),
		array('title'=>'收益设置','child'=>array(
			array('url'=>'jy_ad/team.level/','title'=>'团长等级设置'),
			array('url'=>'jy_ad/team.setting/','title'=>'基本设置'),
			array('url'=>'jy_ad/team.page_setting/','title'=>'样式设置'),
			array('url'=>'jy_ad/team.apply_setting/','title'=>'团长申请页设置'),
			array('url'=>'jy_ad/team.poster/','title'=>'团二维码海报'),
			array('url'=>'jy_ad/basic.module_home/cover/ac=team.index','title'=>'团长入口'),
		)),
	)),
	array('title'=>'会员','fa'=>'icon-paihao0','url'=>'jy_ad/sysmember/','child'=>array(
		array('title'=>'会员管理','child'=>array(
			array('url'=>'jy_ad/sysmember/','title'=>'系统会员'),
		)),
	)),
	array('title'=>'应用','isplugin'=>1,'fa'=>'icon-box','url'=>'jy_ad/plugins/','child'=>$plugins),
	array('title'=>'设置','fa'=>'icon-guanyuwo','url'=>'jy_ad/setting/','child'=>array(
		array('title'=>'设置','child'=>array(
			array('url'=>'jy_ad/setting/','title'=>'基本设置'),
		)),
	)),
);
return $menus;